package com.jerry.ball;

/**
 * @author wanggk
 * @Description
 * @date Created in 2021/9/11
 */
public class ThreadUtils {

    public static boolean isMain() {
        return Thread.currentThread().getId() == 1L;
    }

    public static void sleep(long millis) {
        try {
            Thread.sleep(millis);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
